<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>超市订单管理系统</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
<link type="text/css" rel="stylesheet" href="../css/public.css" />
<link type="text/css" rel="stylesheet" href="../layui/css/layui.css" />
</head>
<body>
	<!--头部-->
	<header class="publicHeader">
		<h1>超市订单管理系统</h1>
		<div class="publicHeaderR">
			<p>
				<span>下午好！</span><span style="color: #fff21b"> 用戶名</span> , 欢迎你！
			</p>
			<a href="javascript:logout();">退出</a>
		</div>
	</header>
	<!--时间-->
	<section class="publicTime">
		<span id="time">2015年1月1日 11:11 星期一</span> <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
	</section>
	<!--主体内容-->
	<section class="publicMian ">
		<div class="left">
			<h2 class="leftH2">
				<span class="span1"></span>功能列表 <span></span>
			</h2>
			<nav>
				<ul id="left_menu" class="list">
					<li page="bill_list.html"><a href="javascript:void(0);">订单管理</a></li>
					<li page="provider_list.html"><a href="javascript:void(0);">供应商管理</a></li>
					<li page="user_list.html"><a href="javascript:void(0);">用户管理</a></li>
					<li page="password.html"><a href="javascript:void(0);">密码修改</a></li>
					<li page="exit.html"><a href="javascript:void(0);">退出系统</a></li>
				</ul>
			</nav>
		</div>
		<div id="content" class="right">
			<img class="wColck" src="../images/clock.jpg" alt="" />
			<div class="wFont">
				<h2>用戶名</h2>
				<p>欢迎来到超市订单管理系统!</p>
			</div>
		</div>
	</section>
	<footer class="footer"> 版权归北大青鸟 </footer>
	<script type="text/javascript" src="../js/time.js"></script>
	<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="../js/jquery.form.js"></script>
	<script type="text/javascript" src="../layui/layui.js"></script>
	<script type="text/javascript" src="../js/common.js"></script>
    <script type="text/javascript" src="../js/mycommon.js"></script>
	<script type="text/javascript">
		$(function(){
			//添加菜单的点击事件
			$("#left_menu li").click(function(){
				var page = $(this).attr("page");
				$("#content").load(page);
			}); 
		});
		
		//退出
		var load;
		function logout(){
			console.log(123123);
			requestAjax("/SSM/logout.htm", "post", "json", null,
				function(data){
					console.log(data);
					if(data.success){
						if(data.result){
							location.href = "/SSM/login.html";
						}
					}else{
						layer.msg(data.message);
					}
				});
		}
	</script>
</body>
</html>